#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h> 
#include <stdlib.h> 
#include <string.h> 
#include <math.h> 
#include <ctype.h> 
#include <time.h> 
#include <assert.h>

int main()
{
	int n;
	scanf("%d", &n);
	if (n < 1)
	{
		printf("-1");
		return 0;
	}

	double sum = 0;
	double num = 100;

	for (int i = 1; i <= n; i++)
	{
		if (i == 1)
		{
			sum = 100;
			num /= 2;
			continue;
		}

		sum += 2*num;
		num /= 2;
		
	}

	printf("%.1f %.1f", sum, num);
	return 0;

}